package com.td.framework.kqxt.domain;

import java.util.Date;

/**
 * MonitorServiceStatusId entity. @author MyEclipse Persistence Tools
 */

public class MonitorServiceStatusId implements java.io.Serializable {

	// Fields

	private String sid;
	private Date statTime;

	// Constructors

	/** default constructor */
	public MonitorServiceStatusId() {
	}

	/** full constructor */
	public MonitorServiceStatusId(String sid, Date statTime) {
		this.sid = sid;
		this.statTime = statTime;
	}

	// Property accessors

	public String getSid() {
		return this.sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public Date getStatTime() {
		return this.statTime;
	}

	public void setStatTime(Date statTime) {
		this.statTime = statTime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof MonitorServiceStatusId))
			return false;
		MonitorServiceStatusId castOther = (MonitorServiceStatusId) other;

		return ((this.getSid() == castOther.getSid()) || (this.getSid() != null
				&& castOther.getSid() != null && this.getSid().equals(
				castOther.getSid())))
				&& ((this.getStatTime() == castOther.getStatTime()) || (this
						.getStatTime() != null
						&& castOther.getStatTime() != null && this
						.getStatTime().equals(castOther.getStatTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSid() == null ? 0 : this.getSid().hashCode());
		result = 37 * result
				+ (getStatTime() == null ? 0 : this.getStatTime().hashCode());
		return result;
	}

}